package com.bwf.thread;

import java.io.IOException;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/19 10:28
 * @Copyright 博为峰
 */
public class ThreadDemo01 {
    public static void main(String[] args) throws IOException {
        MyThread01 thread01 = new MyThread01();
        thread01.start();//开启线程

        MyThread01 thread02 = new MyThread01();
        thread02.start();

//        System.in.read();

        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName() + ":" + i);
        }
        /*
           1.启动虚拟机 java.exe
           2.启动主线程（main）: 执行main方法中的代码
         */

    }
}
